<!doctype html>
<html>
  <body>
    <script>
      log(typeof bar, typeof baz);
      let x = 2;
      if (true) {
        log(typeof bar, typeof baz);
        let y = 3;
        var z = 4;
        function bar() {}
        class Test {}
      }

      log(typeof bar, typeof baz);

      class Foo {}
      function baz() {}

      import('./module');
    </script>
    <script>
      output = {
        x,
        y: typeof y,
        z,
        bar,
        Test: typeof Test,
        Foo,
        baz
      };
    </script>
  </body>
</html>
